package com.example.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.entity.UserAddress;
import com.example.mapper.UserAddressMapper;
import com.example.service.UserAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserAddressServiceImpl extends ServiceImpl<UserAddressMapper, UserAddress> implements UserAddressService {
    @Autowired
    private UserAddressMapper userAddressMapper;

    public List<UserAddress> selectList(UserAddress userAddress) {
        List<UserAddress> list = userAddressMapper.selectList(new QueryWrapper<UserAddress>().like("openid", userAddress.getOpenid()));
        return list;
    }
}
